From: Helmut Grohne Date: Wed, 29 Jul 2026 08:26:16 +0000 (+0300) Subject: call pkgconfig in order to be able to cross build qtbase with MySql. X-Git-Tag: archive/raspbian/5.15.19+dfsg-4+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=112c82d06aa3134328206ee760aa76f24561e3a2;p=qtbase-opensource-src.git call pkgconfig in order to be able to cross build qtbase with MySql. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604 Forwarded: not-needed Reviewed-by: Lisandro Damián Nicanor Pérez Meyer Last-Update: 2026-05-27 Qt's build system calls mysql_config... which won't work in a cross build environment like Debian's, as it will throw an exec format error. In order to solve this call pkgconfig and use mysqlclient.pc. Gbp-Pq: Name cross_build_mysql.diff --- diff --git a/src/plugins/sqldrivers/configure.json b/src/plugins/sqldrivers/configure.json index 9db93d6c5..8c6010fcd 100644 --- a/src/plugins/sqldrivers/configure.json +++ b/src/plugins/sqldrivers/configure.json @@ -67,6 +67,7 @@ }, "headers": "mysql.h", "sources": [ + { "type": "pkgConfig", "args": "mariadb" }, { "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": true }, { "type": "mysqlConfig", "query": "--libs", "cleanlibs": true }, { "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": false },